package com.niit.project.entity;

//BadGoods顾名思义，就是不好的商品，也就是用户觉得不好的商品，所以用户要举报
//所以这个实体类是用来表示被举报的商品,将来会用在用户的举报功能和管理员的查看举报信息中
public class BadGoods {
    private int id;
    private String username;
    private String goodname;
    private String goodtype;
    private String changemedium;
    private String changeway;

    public BadGoods(String goodname, String goodtype, String changemedium, String changeway) {
        this.goodname = goodname;
        this.goodtype = goodtype;
        this.changemedium = changemedium;
        this.changeway = changeway;
    }

    public BadGoods(String username, String goodname, String goodtype, String changemedium, String changeway) {
        this.username = username;
        this.goodname = goodname;
        this.goodtype = goodtype;
        this.changemedium = changemedium;
        this.changeway = changeway;
    }

    @Override
    public String toString() {
        return "BadGoods{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", goodname='" + goodname + '\'' +
                ", goodtype='" + goodtype + '\'' +
                ", changemedium='" + changemedium + '\'' +
                ", changeway='" + changeway + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGoodname() {
        return goodname;
    }

    public void setGoodname(String goodname) {
        this.goodname = goodname;
    }

    public String getGoodtype() {
        return goodtype;
    }

    public void setGoodtype(String goodtype) {
        this.goodtype = goodtype;
    }

    public String getChangemedium() {
        return changemedium;
    }

    public void setChangemedium(String changemedium) {
        this.changemedium = changemedium;
    }

    public String getChangeway() {
        return changeway;
    }

    public void setChangeway(String changeway) {
        this.changeway = changeway;
    }

    public BadGoods() {
    }

    public BadGoods(int id, String username, String goodname, String goodtype, String changemedium, String changeway) {
        this.id = id;
        this.username = username;
        this.goodname = goodname;
        this.goodtype = goodtype;
        this.changemedium = changemedium;
        this.changeway = changeway;
    }
}
